<template>
  <div>
    <Breadcrumb></Breadcrumb>
    <div class="content">
            订单合同： <el-button @click="dialogVisible = true">查看合同</el-button>
            <!-- PDF打印 查询关键词：vue实现PDF打印 -->
        </div>

          <el-dialog title="查看合同内容" :visible="dialogVisible" width="60%" :before-close="handleClose">
            <VuePdf></VuePdf>
            <!-- <span>啊哈哈哈哈</span> -->
            <span slot="footer" class="dialog-footer">
                <el-button @click="dialogVisible = false">取 消</el-button>
                <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
            </span>
        </el-dialog>
  </div>
</template>

<script>
import VuePdf from './Vuepdf.vue'
export default {
      data(){
        return{
            dialogVisible:false
        }
    },
      methods:{
        handleClose(){
            this.dialogVisible=false
        }
    },
    components:{
      VuePdf
    }
}
</script>

<style lang="less" scoped>
.content {
    background: #fff;
    padding: 20px;
}
</style>